/*******************************************************************************
** CopyRight (c) 2005-2008 SKY-MOBI Ltd. All rights reserved.
** Filename:  rollMsg.h
** Creator:   yuzhifeng
** Version:   0.0
** Date:      
** Description:
 *******************************************************************************/

#ifndef __ROLLMSG_H__
#define __ROLLMSG_H__

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#define MAX_ROLLMSG_UTF8_LEN 	150 	
#define MAX_ROLLMSG_COUNT 		20

typedef struct _rollmsg_t_
{
	uint32 id;
	int32 contentLen;
	uint16* content;
} ROLLMSG_T;

typedef struct _rollmsg_list_
{
	uint8 msgCount;
	uint8 currMsg;
	uint8 currPos;
	uint8 rollTimes;
	ROLLMSG_T msgList[MAX_ROLLMSG_COUNT];
} ROLLMSG_LIST;

extern ROLLMSG_LIST gRollMsg;

int32 rollMsg_startModule(int32 reload);
int32 rollMsg_exitModule(void);
int32 rollMsg_addMsg(uint32 id, uint16* msg);
int32 rollMsg_removeMsg(uint32 id);


#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif


